﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter09.Code02.Code03.Example02
{
    public class ClassA
    {
        private int state = -1;

        public int State
        {
            get { return state; }
            set { state = value; }
        }

        public class ClassB
        {
            public void SetPrivateState(ClassA targer, int newState)
            {
                targer.state = newState;
            }
        }
    }
}
